import request from '@/utils/request'


export function getRecentDevices() {
  return request({
    url: '/space/myRecentDevices',
    method: 'get'
  })
}

export function findDevice(data) {
  return request({
    url: '/space/findDevice',
    method: 'get',
	params: data
  })
}

export function addDevice(data) {
  return request({
    url: '/space/addDevice',
    method: 'post',
	params: data
  })
}

export function getCollectDevices() {
  return request({
    url: '/space/getCollectDevices',
    method: 'get'
  })
}

export function collectDevice(data) {
  return request({
    url: '/space/collectDevice',
    method: 'post',
	params: data
  })
}